{extend name="./oscshop/admin/view/public/base.html" /}
{block name="content"}
<div class="page-header">
<h1>	
	移动端
	<small>
		<i class="ace-icon fa fa-angle-double-right"></i>
		{$breadcrumb1}
	</small>
	<small>
		<i class="ace-icon fa fa-angle-double-right"></i>
		图文回复
	</small>
</h1>
</div>
<div class="page-header">
<a href="{:url('ReplyBackend/news_add')}" class="btn btn-primary">新增</a>
</div>	
	
<div class="row">
	<div class="col-xs-12">	
		<div class="table-responsive">
			<table class="table table-striped table-bordered table-hover">
				<thead>
					<tr>											
						<th>关键字</th>
						<th>标题</th>
						<th>图片</th>
						<th>URL</th>
						<th>启用</th>
						<th>操作</th>				
					</tr>
				</thead>
				<tbody>
						{volist name="list" id="data" empty="$empty"}
						<tr>
							
							<td>{$data.keyword}</td>
							<td>{$data.title}</td>
							<td>
								
								{if condition="$data['thumb']"}
		                  			<img src="IMG_ROOT{$data.thumb|resize=100,100}"  />
			                  	{else /}
			                  		<img src="__PUBLIC__/image/no_image_50x50.jpg" title="暂无图片" />
			                  	{/if}
							</td>
							<td>
								<a target="_blank" href="<?php echo request()->domain().'/mobile/article/index/id/'.$data['nr_id']; ?>">
								<?php echo request()->domain().'/mobile/article/index/id/'.$data['nr_id']; ?>
								</a>								
							</td>
							<td>
								{switch name="data.status"}   
									{case value="1"}是{/case}
									{case value="0"}否{/case}									 
								{/switch}
							</td>
							<td>
								<a  class="btn btn-xs btn-info" href='{:url("ReplyBackend/news_edit",array("id"=>$data["nr_id"]))}'>
									<i class="fa fa-edit bigger-120"></i>
								</a> 
								<a class="delete btn btn-xs btn-danger" href='{:url("ReplyBackend/news_del",array("id"=>$data["rid"]))}' >
									<i class="fa fa-trash bigger-120"></i>
								</a>
							</td>
						</tr>
						{/volist}	
						
						
				</tbody>
				
			</table>
		</div>
	</div>
</div>
{/block}